package cn.yuli.duck.impl;

import cn.yuli.duck.Duck;
import cn.yuli.fly.Fly;
import cn.yuli.talk.Talk;

public class ThinDuck extends Duck {
	public ThinDuck(Fly fly,Talk talk) {
		super(fly, talk);
	}
	@Override
	public void display() {
		System.out.println("这是一只瘦鸭子");
		this.flying();
		this.talking();
	}

}
